﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using Styx;
using Styx.Common;
using Styx.CommonBot.Routines;
using Styx.WoWInternals.WoWObjects;
using Styx.WoWInternals;
using System.Windows.Media;

namespace YourBuddy_MoP
{
    public partial class main : CombatRoutine
    {
        #region Initialize
        public sealed override string Name { get { return "YourBuddy MoP 2.0"; } }
        public string Revision { get { return "43"; } }

        public override WoWClass Class { get { return WoWClass.Warrior; } }
        private static LocalPlayer Me { get { return StyxWoW.Me; } }
        private void slog(string format, params object[] args) { Logging.Write(format, args); }
        public override void Initialize()
        {
            Logging.Write(Colors.White, "Team Random presents ...");
            Logging.Write(Colors.DarkOrange, Name + " by NomNomNom");
            Logging.Write(Colors.DarkOrange, "Revision: " + Revision);
            Logging.Write(Colors.White, "Special thanks to Dagradt & Redhood");
        }
        #endregion

        #region GUI
        public override bool WantButton { get { return true; } }
        public override void OnButtonPress() { slog("Configuration GUI opened"); new YBMOP_GUI().ShowDialog(); }
        #endregion

        #region StartCombat
        public override void Combat()
        {
            if (StyxWoW.Me.GotTarget && StyxWoW.Me.CurrentTarget != null && StyxWoW.Me.CurrentTarget.IsAlive && StyxWoW.Me.CurrentTarget.Attackable && !StyxWoW.Me.Mounted)
            { AutoAttack(); InterruptRotation(); CDRotation(); AoERotation(); STRotation(); ShoutRotation(); SHRotation(); }
        }
        #endregion
    }
}